package com.cn.mapper;

import com.cn.pojo.Account;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface AccountMapper {
    @Update("update account set money = money + #{money} where name = #{name}")
    void inMoney(@Param("name")String name,@Param("money")Double money);

    @Update("update account set money=money-#{money} where name=#{name}")
    void outMoney(@Param("name")String name,@Param("money") Double money);
}
